package com.example.zhugenew.adapter;

import android.content.Context;

import com.example.mymvplibrary.adapter.BaseAdapter;
import com.example.mymvplibrary.adapter.BaseViewHolder;
import com.example.zhugenew.R;
import com.example.zhugenew.bean.MarketBean;

import java.util.List;

public class MarketAdapter extends BaseAdapter<MarketBean.ListBean> {
    public MarketAdapter(List<MarketBean.ListBean> datas, Context context, int layoutId) {
        super(datas, context, layoutId);
    }

    @Override
    public void bindData(BaseViewHolder holder, MarketBean.ListBean listBean, int pos) {
        holder.setText(R.id.price,listBean.getSell_city_price_average()+"");
        holder.setText(R.id.shuliang,listBean.getHouse_drop_count()+"");
        holder.setText(R.id.tao,listBean.getHouse_drop_count()+"");
        holder.setText(R.id.ershou,listBean.getSell_city_price_title()+"");
        holder.setText(R.id.baifenzhi,listBean.getSell_city_price_percentage()+"");
        holder.setText(R.id.xinshang,listBean.getHouse_rise_title()+"");
        holder.setText(R.id.jiangjia,listBean.getHouse_drop_title()+"");
        holder.setText(R.id.huanbishangyue,listBean.getSell_city_price_description()+"");
    }

}
 